class DangerChartData:
    def __init__(self,timedata,alldanger,imdanger,redangerChartData):
        self.timedata = timedata
        self.alldanger = alldanger
        self.imdanger = imdanger
        self.redangerChartData = redangerChartData

    def to_dict(self):
        return{
            'timedata':self.timedata,
            'alldanger':self.alldanger,
            'imdanger':self.imdanger
        }
